Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [powershell]

An interactive shell, scripting and programming language, and surrounding environment from Microsoft. Commonly used by system administrators managing Microsoft software (including Windows, Exchange, SharePoint, and cloud services Azure and Office 365), PowerShell is included by default with Windows, and takes over from previous languages such as VB Script.

0 votes
1 answer
33 views

LogOff script runs with administrator privileges?

I have a script that I'm trying to bring to the desired result. it runs when the user logs off, during which the onedrive process should start, I expect it to run as the user, which ends the session, ...
Stanislav Ilin's user avatar
0 votes
1 answer
8 views

Powershell "New-FsrmFileScreen : 0x80070057, The parameter is incorrect."

We are using the File Server Ressource Manager on Windows Server 2019 to monitor all network shares to prevent ransomware attacks. Initially, we were using a blacklist, but now I want to switch this ...
Larsen's user avatar
  • 353
0 votes
1 answer
20 views

Copying from S3 to Windows Network drive

I have a very small hard drive and an expansive Windows network drive. I would like to copy the bucket "myBucket" to my Microsoft local area network shared drive. Something like this, but ...
Steve Scott's user avatar
-1 votes
1 answer
112 views

Advanced Audit Policy configuration using PowerShell

I created a GPO to enable advanced audit policies and Security settings. Related policy settings I need to edit and enable the settings using PowerShell. What are the related registry keys? How can I ...
recmad's user avatar
  • 3
1 vote
0 answers
45 views

Set service Startup Type to "Automatic (DelayedStart)" with PowerShell

I'm trying to script changing specific services to have Startup Type "Automatic (DelayedStart)". When I pipe the services into Set-CimInstance, I get an error that it "could not modify ...
Alex Pixley's user avatar
2 votes
1 answer
95 views

In Active Directory, how to synchronize the members of a group automatically based on users attributes?

In Active Directory on premise, I would like to maintain distribution lists and security groups based on the attributes of the users, for instance the manager, the department, the city.
ocroquette's user avatar
0 votes
0 answers
32 views

PRTG - Invalid JSON structure Error PE231

I am very new to PRTG and VEEAM ect. so please do bare with me I've seen this error been talked about a lot, but nothing has helped me so far. I have a custom XML script that I use for VEEAM backup (...
Samuel du Plessis's user avatar
1 vote
1 answer
101 views

Removing final Exchange server, unable to follow Microsoft instructions

I'm reviewing the process to remove the last Exchange server in an environment by following Microsoft's instructions at https://learn.microsoft.com/en-us/exchange/manage-hybrid-exchange-recipients-...
Halfdone's user avatar
  • 175
0 votes
0 answers
19 views

Running a long-running process on Windows using SSH

I have a Windows machine with SSH Server installed. As part of my pipeline, I need to run Selenium server on that machine, which the rest of the pipeline will use. I've tried using Powershell's Start-...
YoavKlein's user avatar
  • 143
2 votes
1 answer
128 views

How can I determine, using Powershell, without MS Graph, the ability of a user to use Self Service Password Reset (SSPR)?

I don't have access to Microsoft Graph in my environment due to permissions afforded me. MSOnline, in addition to being deprecated, only allows pulling 30 days of records. Is there any other way to, ...
user66001's user avatar
  • 234
2 votes
0 answers
67 views

Adding languages base on the computer in RDS environment

I'm assigning keyboard languages to users in an RDS environment based on the host. For example, if a user is assigned to ts "tsA", spanish will be added to the keyboard. Uf assigned to other ...
Zhao Ses's user avatar
0 votes
1 answer
48 views

Reading full user email adress on intune client

I am configuring windows 11 clients as part of a project to migrate our infrastructure to intune. As a part of this im running into trouble with a powershell script, that work on our non intune domain ...
Samuel's user avatar
  • 13
0 votes
1 answer
23 views

unable to get AWS session via AWSPowerShell in Milano Region via STS

I am using some AWSPowerShell script to get reports from my instances. I have old working instances in Tokio region ap-northeast-1, new instances were deployed in Milano region eu-south-1, To get ...
andrew's user avatar
  • 231
0 votes
1 answer
114 views

Get AD groups a user is member of from all domains and subdomains

I am trying to get all the groups a user is a member of in all my domains and subdomains. Here is the setup : Forest 1 domain1.local sub.domain1.local Forest 2 domain2.local The user is located in ...
IngoMarlboro's user avatar
0 votes
1 answer
223 views

Get-WmiObject access is denied, unauthorized access exception

Following a Windows update on Computer B, the following failed. Get-WmiObject -Class Win32_OperatingSystem -ComputerName "ComputerB" With the error: Get-WmiObject : Access is denied. (...
user270488's user avatar

15 30 50 per page
1
2 3 4 5
277