Powershell: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Tag: Manual revert
 
(8 intermediate revisions by 2 users not shown)
Line 3: Line 3:
Check if the Password is Expired
Check if the Password is Expired


<code>Get-ADUser -identity INSERTclientUSERNAMEHERE -properties PasswordLastSet, PasswordExpired, PasswordNeverExpires | ft Name, PasswordLastSet, PasswordExpired, PasswordNeverExpires</code>
Get-ADUser -identity INSERTclientUSERNAMEHERE -properties PasswordLastSet, PasswordExpired, PasswordNeverExpires | ft Name, PasswordLastSet, PasswordExpired, PasswordNeverExpires
<hr>
Force the DC to sync the password


start-adsyncsynccycle -policytype delta
<hr>
<hr>
Force the DC to sync the password
Join a domain


<code>start-adsyncsynccycle -policytype delta</code>
add-computer -domainname "YourDomainName"  -restart


<hr>
<hr>
Join a domain
Getting New Teams to install when it refuses to [Needs Admin]


<code>add-computer –domainname "YourDomainName" -restart</code>
Add-ProvisionedAppPackage -Online -PackagePath "{PATH-TO-TEAMS}.msix" -SkipLicense

Latest revision as of 15:17, 12 June 2024

POWERSHELL COMMON STUFF


Check if the Password is Expired

Get-ADUser -identity INSERTclientUSERNAMEHERE -properties PasswordLastSet, PasswordExpired, PasswordNeverExpires | ft Name, PasswordLastSet, PasswordExpired, PasswordNeverExpires

Force the DC to sync the password

start-adsyncsynccycle -policytype delta

Join a domain

add-computer -domainname "YourDomainName"  -restart

Getting New Teams to install when it refuses to [Needs Admin]

Add-ProvisionedAppPackage -Online -PackagePath "{PATH-TO-TEAMS}.msix" -SkipLicense