99偷拍视频精品区一区二,口述久久久久久久久久久久,国产精品夫妇激情啪发布,成人永久免费网站在线观看,国产精品高清免费在线,青青草在线观看视频观看,久久久久久国产一区,天天婷婷久久18禁,日韩动漫av在线播放直播

將客戶端主機移動到指定的OU內-創新互聯

##########################################
#######將客戶端主機移動到指定的OU內######
################# V1.0 #################
############ yuanzhe #################

目前創新互聯公司已為數千家的企業提供了網站建設、域名、雅安服務器托管、網站托管、服務器托管、企業網站設計、中原網站維護等服務,公司將堅持客戶導向、應用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協力一起成長,共同發展。

###添加 ActiveDirectory power shell模塊###
Import-Module ActiveDirectory
###將Windows7 企業版賦予變量###
####$windows7enterpise=Get-ADComputer -SearchBase "CN=Computers,DC=ljstaff,DC=com" -Filter {OperatingSystem -eq "Windows 7 企業版"} -Properties OperatingSystem,OperatingSystemVersion | select OperatingSystem,OperatingSystemVersion
$windows7enterpise ="Windows 7 企業版"

###將Windows7 旗艦版賦予變量###
$windows7Uitimate="Windows 7 旗艦版"

###將Windows10 企業版版賦予變量###
$windows10Enterpise="Windows 10 企業版"

###將Windows 10 專業版版賦予變量###
$windows10ProfessionalEdition="Windows 10 專業版"

###查看computers目錄下的所有計算機###
$computers=Get-ADComputer -SearchBase "CN=Computers,DC=windows,DC=com" -Filter * -Properties OperatingSystem,OperatingSystemVersion

###添加域主機的OU目錄###
$dasou="ou=das,dc=windows,dc=com"

foreach ( $lscomputer in $computers )
{
###將computers OU下的Windows 7 企業版計算機移動到 DAS OU內###
if ($lscomputer.OperatingSystem -eq "$windows7enterpise"){
Move-ADObject -Identity $lscomputer -TargetPath $dasou
###暫停###
#Pause
}
###將computers OU下的Windows 7 旗艦版計算機移動到 DAS OU內###
if ($lscomputer.OperatingSystem -eq "$windows7Uitimate"){
Move-ADObject -Identity $lscomputer -TargetPath $dasou
###暫停###
#Pause
}
###將computers OU下的Windows 10 企業版計算機移動到 DAS OU內###
if ($lscomputer.OperatingSystem -eq "$windows10Enterpise"){
Move-ADObject -Identity $lscomputer -TargetPath $dasou
###暫停###
#Pause
}
###將computers OU下的Windows 10 專業版計算機移動到 DAS OU內###
if ($lscomputer.OperatingSystem -eq "$windows10ProfessionalEdition"){
Move-ADObject -Identity $lscomputer -TargetPath $dasou
###暫停###
#Pause
}
}

制作任務計劃

每隔4小時運行一下腳本

添加參數
程序腳本:powershell #運行工具
添加參數:C:\script\Movecomputer.ps1 #腳本路徑
起始于:C:\script\ #指定程序目錄

將客戶端主機移動到指定的OU內

另外有需要云服務器可以了解下創新互聯scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

網頁題目:將客戶端主機移動到指定的OU內-創新互聯
轉載源于:http://www.yijiale78.com/article38/dddppp.html

成都網站建設公司_創新互聯,為您提供網頁設計公司品牌網站建設軟件開發做網站品牌網站設計全網營銷推廣

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

網站優化排名