All Questions
Tagged with user-accounts powershell
29
questions
1
vote
1
answer
70
views
How to remove user folders with nonexistent symlinks?
I noticed that there are duplicate user accounts on users' Windows 10 computers that prevents in place upgrade to Windows 11. So I'm trying to remove these user accounts in a "prepare-for-win11-...
0
votes
0
answers
48
views
change the default download location from c drive to R drive for all apps
We have implemented a new policy in the company to lock the C drive for all employees. We have created a new partition using a PowerShell script. However, the issue is that when the C drive is locked, ...
0
votes
0
answers
206
views
Need help creating local user accounts on 6 remote computers in a Windows workgroup
I am trying to create a simple script that prompts a local admin user to create a local user account on 6 remote computers in a Windows Workgroup. The script should prompt for the name of the user, ...
2
votes
1
answer
383
views
New-ADUser -Manager from different domain
My Powershell script to create new users does not work when the "Manager" is located in a different domain.
For example, I am creating a user in the domain contoso.com, but the manager is ...
0
votes
1
answer
40
views
cannot set a variable within a wmic useraccount request
Folks,
I'm trying to set some attributes for a large set of user accounts on a W10 system.
To do so, I create a table of usernames with get-localgoupmember, which I parse with a foreach command.
Let's ...
0
votes
1
answer
645
views
Switching from SYSTEM to Administrator
I have remote CommandLine/Powershell access to a Windows Server as NT Authority/SYSTEM user, I need to be Administrator user but whatever I do like start a new process, I am unable to drop to ...
2
votes
1
answer
497
views
Why doesn't the login screen show a created New-LocalUser or the Administrator account?
Login is with a pin code and right clicking on cmd allows running in an elevated mode as Administrator so that new accounts can be created:
adding a user:
PS C:\Windows\System32>
PS C:\Windows\...
0
votes
1
answer
424
views
Replace Old Email Account with New Email Account
Have an email account to be retired, and wish to continue MS Teams (free, classic) as before with an existing MS Live account.
To sign in with a different account is as with a new user, and there are ...
2
votes
1
answer
4k
views
List all user accounts with an active presence on the local device
I need a way in PowerShell (ideally PS2.0+) to list all user accounts on a local system where a user has a local presence, but where users may not be local users per se. That is to say that the device ...
0
votes
1
answer
365
views
Remove ALL User generated Files from Windows 10
I have a question about file/program handling in windows 10.
My Problem is that i will leave my company at the end of the month and want to clean out my windows user account. I know when i delete the ...
1
vote
0
answers
334
views
How to create a local user account with a PrincipalSource of MicrosoftAccount via Powershell
In Windows 11/Server 2022 is it possible to create a user with a PrincipalSource of MicrosoftAccount via Powershell?
The New-LocalUser cmdlet documentation discusses the PrincipalSource property but ...
1
vote
1
answer
1k
views
Script to run program in Windows 10 as different user
I have a Windows 10 PC with an admin account and a regular user account. I want to write a Powershell script to run a program in the regular user account from the admin account. So I would run the ...
0
votes
1
answer
118
views
Find and delete local user on several clients
I have some clients in the domain and some not.
I need to know how to retrieve on which clients it is present a specific local user and then delete it.
With a GPO is pretty easy for domain clients, ...
1
vote
0
answers
1k
views
how to install New-LocalUser and read the help file from PowerShell
Looks to be a 64 bit OS but 32 bit powershell, if I'm reading this correctly:
**********************
Windows PowerShell transcript start
Start time: 20200329133946
Username: DESKTOP-9AKB65V\thufir
...
0
votes
1
answer
2k
views
How to review a user's outgoing email before approving in Outlook?
I want to set up outlook so a users email are reviewed by their manager before emails are sent out internally or externally. Please note that adding mailbox permissions such as Read and Manage is not ...