본문 바로가기

powershell6

Delete hostname 30 days old in Active Directory powershell Delete hostname 30 days in Active Directory powershell command. It is powershell for 30 days past equipment management Import-Module ActiveDirectory # Only 30 days $ DaysInative = 30 $ InactiveDate = (Get-Date) .Adddays (- ($ DaysInactive)) $ Computers = Get-ADComputer -Filter {LastLogonDate -lt $ InactiveDate -and Enabled -eq $ true} -Properties LastLogonDate | Select-Object Name, LastLogonDate.. 2019. 5. 21.
Problem when converting displayname to another character in office365 Hi When converting displayname (notation name) to Hangul in office365, the recipient will appear in Hangul when sending e-mail. If you want to displayname in Korean and want to display it in English, proceed as follows. First you need to turn on the feature called SDN (simpledisplayname). If this is turned on, the value sent to displayname will be sent as the SDN value. Working with powershell G.. 2019. 5. 21.
Editing and exploiting powershell AD users Hi I'll give you a command that you can batch edit in a simple way ~ Is it too hard for the user to adjust one by one in the ex-post and extermination AD? So I make a list with CSV and execute the command. After running PowerShell on the AD server $ Users = Import-csv (c: \ filename.csv) foreach ($ User in $ Users) Once you get the csv. I am putting a name, a department, a report line, a notatio.. 2019. 5. 21.
powershell AD 사용자 편집 및 활용 안녕하세요 간단하게 사용자 일괄 편집 할수 있는 명령어 전달 해드릴게요~ 사용자가 전 입퇴사 AD에서 하나씩 조정하는건 너무 힘들 일이죠? 그래서 CSV로 명단을 만들고 명령어 실행 합니다. AD 서버에서 파워쉘 실행 후 ...더보기 $Users = Import-csv (c:\파일명.csv) foreach ($User in $Users) 일단 csv를 불러옵니다. 저같은 경우 csv파일엔 이름,부서, 리포트라인, 표기이름, 설명, 내선번호, 사번, 이메일, 잡타이틀 등등 넣고 있어요. ...더보기 { Set-ADUser $User.SamAccountName -Manager $User.Newmanager Set-ADUser $User.SamAccountName -description $User.descri.. 2019. 4. 24.