Vmware Snapshot List

IT

#############################################################################
# List all VM with snapshots
# Run as scheduled task with a user with rights to view all VMs
#

Add-PSSnapin VMware.VimAutomation.Core

# HTML/CSS style for the output file
$head = “<style>”
$head = $head + “BODY{background-color:white;}”
$head = $head + “TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}”
$head = $head + “TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}”
$head = $head + “TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:PaleGoldenrod}”
$head = $head + “</style>”

Continue Reading

Powershell ile radius kullanıcı iplerini çıkartmak

IT

$all = @()
$time = 0
$users = get-aduser -filter * -Properties ‘msRADIUSFramedIPAddress’ | ? { $_.msRADIUSFramedIPAddress -ne $null }
foreach( $user in $users)
{

$IP = DigitToStrIPAddress($user.msRADIUSFramedIPAddress)
$result = new-object psobject
$result | add-member noteproperty sAMAccountName $user.SamAccountName
$result | add-member noteproperty IP $IP

Continue Reading