Allow Remote Signed: Set-ExecutionPolicy RemoteSigned
ex.
export ova filter by ResourcePools
#Load the VMWare PowerCLI SnapIn
Add-PSSnapin vmware.vimautomation.core
#List VMWare cmdlets
#Get-Command -PSSnapin VMware.*
Connect-VIServer temp.domain.local -WarningAction SilentlyContinue
$VMS = Get-ResourcePool -Name "iSCSI-VM-Offline_Datastore" | get-vm
foreach ($VM in $VMS){
echo "export $VM to ova file"
Export-VApp -Destination "E:\iSCSI-VM-Offline_Datastore\" -VM $VM -Format OVA
}
ex.
Backup ova
http://idledeveloper.com/tag/export-vapp/
Wednesday, July 23, 2014
Regular Expressions in NPS
exp:
Network ^192\.168\.10\..+
http://technet.microsoft.com/en-us/library/cc755272(v=ws.10).aspx
Network ^192\.168\.10\..+
http://technet.microsoft.com/en-us/library/cc755272(v=ws.10).aspx
Saturday, July 5, 2014
Modify LDAP Password
Find user in LDAP:
root@mail # ldaplist |grep username
dn: uid=username,ou=group4,ou=people,dc=domain,dc=ac,dc=th
Modify user in LDAP:
root@mail # ldapmodify -D "cn=directory manager" <enter>
Bind Password: blindpassword <enter>
dn: uid=username,ou=group4,ou=people,dc=domain,dc=ac,dc=th <enter> มาจากคำสั่งข้างบน
changetype: modify <enter>
replace: userPassword <enter>
userPassword: (password) <enter>
root@mail # ldaplist |grep username
dn: uid=username,ou=group4,ou=people,dc=domain,dc=ac,dc=th
Modify user in LDAP:
root@mail # ldapmodify -D "cn=directory manager" <enter>
Bind Password: blindpassword <enter>
dn: uid=username,ou=group4,ou=people,dc=domain,dc=ac,dc=th <enter> มาจากคำสั่งข้างบน
changetype: modify <enter>
replace: userPassword <enter>
userPassword: (password) <enter>
Subscribe to:
Posts (Atom)
ALCATEL 6900
write memory copy running certified reload from working no rollback-timeout
-
SET LLDP System NAME: system name ALL-Uplink system location SIAM-FL11 SHOW LLDP Configure: show lldp config or show lldp local-syste...
-
grant execute on utl_http to wc grant execute on dbms_lock to wc; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => ...
-
:system view system-view or sys :show all config dis current-configuration :create vlan vlan vlan_number :show ip interface ...