Powershell: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 14: Line 14:


<code>add-computer –domainname "YourDomainName"  -restart</code>
<code>add-computer –domainname "YourDomainName"  -restart</code>
<hr>
Getting New Teams to install when it refuses to
Open Powershell as admin:
<code>Add-ProvisionedAppPackage -Online -PackagePath "{PATH-TO-TEAMS}.msix" -SkipLicense</code>

Revision as of 01:16, 1 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

Open Powershell as admin:

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