<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.plecko.hr/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.plecko.hr/feed.php">
        <title>Eureka Moment windows:powershell_commands</title>
        <description></description>
        <link>https://wiki.plecko.hr/</link>
        <image rdf:resource="https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico" />
       <dc:date>2026-05-06T14:08:42+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:ad&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_ad_ou&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_core_addc_2016&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_domain_user_to_local_group&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:change_ad_pwd&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:dns&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:download_files_with_powershell&amp;rev=1623057373&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:exchange&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:nic_teaming&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:query_disk_controllers&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:set_acl&amp;rev=1637156400&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:start&amp;rev=1572509160&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:x.509_certificate&amp;rev=1572509160&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico">
        <title>Eureka Moment</title>
        <link>https://wiki.plecko.hr/</link>
        <url>https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:ad&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:ad</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:ad&amp;rev=1572509160&amp;do=diff</link>
        <description>Managing ActiveDirectory using PowerShell


new-adgroup -GroupScope Global -GroupCategory Security -name &quot;Group Name&quot;</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_ad_ou&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:add_ad_ou</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_ad_ou&amp;rev=1572509160&amp;do=diff</link>
        <description>Create AD OU from powershell

New-ADOrganizationalUnit -name &quot;Managed&quot; -path &quot;DC=AppNC&quot;</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_core_addc_2016&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:add_core_addc_2016</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_core_addc_2016&amp;rev=1572509160&amp;do=diff</link>
        <description>Setup a Domain Controller with Windows 2016 Server Core

Setup static IP Open Powershell Install ADDS 


Install-WindowsFeature AD-Domain-Services
#or
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools


Commands:

	*  Add-ADDSReadOnlyDomainControllerAccount</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_domain_user_to_local_group&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:add_domain_user_to_local_group</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:add_domain_user_to_local_group&amp;rev=1572509160&amp;do=diff</link>
        <description>Add domain user to local group

Add-LocalGroupMember -Group &quot;Administrators&quot; -Member &quot;Admin02&quot;</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:change_ad_pwd&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:change_ad_pwd</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:change_ad_pwd&amp;rev=1572509160&amp;do=diff</link>
        <description>Change AD user password using Pwershell

Set-ADAccountPassword -Identity username -OldPassword (ConvertTo-SecureString -AsPlainText &quot;oldpwd&quot; -Force) -NewPassword (ConvertTo-SecureString -AsPlainText &quot;N3Wp4$$w0rD&quot; -Force)</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:dns&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:dns</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:dns&amp;rev=1572509160&amp;do=diff</link>
        <description>Create DNS records with PowerShell

Add cName record:

add-dnsserverresourcerecordcname -ComputerName &quot;ad01&quot; -ZoneName &quot;example.com&quot; -Name &quot;test-cname&quot; -HostNameAlias &quot;ftp.example.com.&quot; -CreatePtr

Add A record:

 Add-DnsServerResourceRecordA -ComputerName &quot;ad01&quot; -ZoneName &quot;example.com&quot; -Name &quot;test-ipv4&quot; -IPv4Address &quot;10.0.0.10&quot; -CreatePtr</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:download_files_with_powershell&amp;rev=1623057373&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-07T11:16:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:download_files_with_powershell</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:download_files_with_powershell&amp;rev=1623057373&amp;do=diff</link>
        <description>Download files with powershell


$client = new-object System.Net.WebClient
$client.DownloadFile(&quot;https://static.tp-link.com/2020/202008/20200803/TX401_V1_200528_Win.zip&quot;,&quot;c:\pub\nic\b.zip&quot;)
Expand-Archive -LiteralPath 'C:\pub\nic\b.zip' -DestinationPath C:\pub\nic\</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:exchange&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:exchange</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:exchange&amp;rev=1572509160&amp;do=diff</link>
        <description>Managing Exchange using PowerShell


new-distributiongroup -name &quot;Group Name&quot; -Alias &quot;groupalias&quot; -type &quot;distribution&quot; -organizationalunit example.com/OU_Name/Distribution Groups&quot; -primarysmtpaddress &quot;group.name@example.com&quot;


User named: First Last at external.com</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:nic_teaming&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:nic_teaming</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:nic_teaming&amp;rev=1572509160&amp;do=diff</link>
        <description>NIC Teaming and VLAN tag

Create virtual switch

New-VMSwitch -Name &quot;SETSwitch&quot; -AllowManagementOS $false -NetAdapterName &quot;Eth1&quot;,&quot;Eth2&quot; -EnableEmbeddedTeaming $true

Create virtual adapter, connected to newly created switch

Add-VMNetworkAdapter -ManagementOS -SwitchName &quot;SETSwitch&quot; -Name &quot;Management&quot;</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:query_disk_controllers&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:query_disk_controllers</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:query_disk_controllers&amp;rev=1572509160&amp;do=diff</link>
        <description>Query all DiskControllers and its associated diskdrives

$Drives = Get-WmiObject -Class WIN32_DiskDrive -ComputerName .
Foreach($Drive in $Drives) { $Drive }</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:set_acl&amp;rev=1637156400&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-11-17T14:40:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:set_acl</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:set_acl&amp;rev=1637156400&amp;do=diff</link>
        <description>Set folder ACL with Powershell


$acl = get-acl c:\shared
$newacl = new-object system.security.accesscontrol.filesystemaccessrule(&quot;DOMAIN\user&quot;,&quot;FullControl&quot;,&quot;Allow&quot;)
$acl.SetAccessRule($newacl)
$acl | set-acl c:\shared
get-acl c:\shared | fl</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:start&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:start</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:start&amp;rev=1572509160&amp;do=diff</link>
        <description>Powershell commands

You can't run unsigned scripts if you don't enable execution of unsigned scripts. Consult with you sysadmin on this as it is essentialy a security risk

set-executionpolicy unrestricted




	* Add domain user to local group
	* Change AD user password using Pwershell
	* Create AD OU from powershell
	* Create DNS records with PowerShell
	* Create X.509 certificate via Powershell
	* Download files with powershell
	* Managing ActiveDirectory using PowerShell
	* Managing Exchange…</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:x.509_certificate&amp;rev=1572509160&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:06:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows:powershell_commands:x.509_certificate</title>
        <link>https://wiki.plecko.hr/doku.php?id=windows:powershell_commands:x.509_certificate&amp;rev=1572509160&amp;do=diff</link>
        <description>Create X.509 certificate via Powershell


PS E:\Certificates&gt; new-selfsignedcertificate -certstorelocation cert:\localmachine\my -dnsname www.example.com -NotAfter 2100.12.31


   PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\my

Thumbprint                                Subject
----------                                -------
6B56F00AA1EB7C981614072D6BBB89F292D3A0BA  CN=www.example.com


PS E:\Certificates&gt; $pwd = ConvertTo-SecureString -String &quot;GCgcPIN**1&quot; -Force -AsPl…</description>
    </item>
</rdf:RDF>
