Powershell

Getting Started with PowerShell

Find Registered Snapin in Powershell Get-PSSnapin –Registered List Available modules on system Get-Module –ListAvailable Import available Modules Import-Module TroubleshootingPack Find Specific Commands from a module Get-Command -module TroubleshootingPack Find Commands using wildcards Get-Command -Name *event* -CommandType cmdlet,function Find commands based on verb and noun search Get-Command -Verb get -Noun ser* Find default PS Modules path… Continue reading Getting Started with PowerShell

Powershell

Change CD Drive Letter and Turn off Domain Firewall

#Change Drive Letter for CD Drive #Disable firewall Function Change-DriveLetter{ $drive = Get-WmiObject -Computername localhost -Class win32_volume -Filter “DriveLetter = ‘D:’” Set-WmiInstance -input $drive -Arguments @{DriveLetter=”R:”} } Function disabledomainfirewall(){ Set-NetFirewallProfile -name domain -Enabled “false”} Change-DriveLetter disabledomainfirewall