Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Conversation

@AsmusRohwer
Copy link
Collaborator

Automated pull request from the Endpoint Configuration Manager Community hub.

@AsmusRohwer AsmusRohwer requested a review from a team May 19, 2022 13:51
Copy link
Contributor

@kmyrup kmyrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not recommended.

[string]$Password
)

net user administrator $password No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contents of this script will cause the password to be placed on the command line on the target machines. This means that it will be logged in the OS and would potentially be obtainable via WMI. This is a security risk, and should not be considered a secure way to do this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants