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
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s