# # VPN Route Fixer $VPNName = "VPN Name" $NetToRoute = "172.x.x.0/x" #----------------------------------------------------------- # Dial the VPN Connection rasdial $VPNName # Get the IP Address of the VPN Connection $vpnObj = Get-WmiObject -Namespace 'root/standardcimv2' MSFT_NetIPaddress | Where-Object { $_.InterfaceAlias -eq $VPNName } | Select IPAddress $vpnIP = $vpnObj.IPAddress route add $NetToRoute mask 255.255.255.0 $vpnIP
Changing Password - in AD, when you're changing one of your other accounts, not the logged in account
Use Powershell Step 1 - Put your existing password in a Secure String $oldPassword = Read-Host "Your old Password" -AsSecureString Step 2 - Start the password change set-AdAccountPassword -Identity paul-admin -OldPassword $oldPassword Step 3 - Enter your new password You'll be prompted for your new password... Please enter the desired password for 'CN=xxxx,OU=Admin Users,OU=Users,OU=Privileged,DC=CAIS,DC=com,DC=edu,DC=au' Password: ************************** Repeat Password: **************************
Comments
Post a Comment