Script to list files on a remote Server
Hi All, So I'm runnung the below script to be able to retrieve the details of files on a Remote Server at the specified location. Clear-Host Set-Location $env:USERPROFILE Push-Location $env:USERPROFILE # # Set Output file…
NVME disks serial number is abstracted in windows VM
Hi Team , I see that VMware is abstracting disk serial numbers for nvme disks and is presenting generic number like VMWare NVME_0000 for all the nvme disks mapped to windows VM via VMware. Is there any utility where we can get the actual disk numbers?…
How to set both Background and Lockscreen to slideshow using Powershell script only?
Want to deploy 3 images to use as slideshow for both Background and Lockscreen to a targeted group of user via Intune. The 3 images should rotate at a 1min interval as a Background and Lockscreen. Have tried to implement the scripts from various sites…
Add multiple pictures Lockscreen slideshow for win 11 using psadt powershell scripting
Can anyone help me in creating psadt powershell scripting to add multiple pictures Lockscreen slideshow for win 11 and help me in deployment to intune. The Script should work to all the users which are assign using intune.
MS Office Installation using powershell
Does Microsoft Office support silent installation using powershell? if YES, i have use this powershell script to install MSOFFICE, but it won't works. can someone please fix this. $exePackageToInstall =…
Powershell learning resource recommendation
Just starting to learn Powershell and looking for advice and learning resources from experienced engineers; I would appreciate it if you could help me.
How to run an interactive PowerShell command non-interactively?
How can I run a PowerShell command that is normally interactive non-interactively, i.e. supplying parameters directly in a PowerShell script instead of letting the user supply them? What I have in mind is something like "piping" in bash. I'm…
I need to return the copied data that Powershell output a long time ago.
1 Is it possible to view the copy history in Windows for all time? 2 Is it possible to view the results of all commands for all time in Windows PowerShell? If possible, how?
Powershell from SSIS - Empty environment variable
I'm running a script in an SSIS package and I specify an account to run the package in SQL Server Agent. When it runs, I am unable to get the value of $ENV:LOCALAPPDATA Here's my code along with writing out the LOCALAPPDATA value Start-Transcript…
Invoke-RestMethod: The remote server returned an error: (403) Forbidden.
Hello, I'm currently trying to retrieve a documentation page in Confluence to edit and save it with a PowerShell script. But I have a problem while recovering the data. Suggestions ? Thanks for your assistance !
Remove-MgGroupMemberDirectoryObjectByRef: Insufficient privileges to complete the operation
I am trying to use the Remove-MgGroupMemberDirectoryObjectByRef -GroupId $groupId -DirectoryObjectId $userId to remove users from a group. It works fine when using an account that has global admin permissions but using a service principal with…
Powershell 5.1.14393.4583 x86 do not support 'Add-SignerRule' command
The command runs with not problem on normal x64 powershell. But when I try to execute it from a x86 application, it does not working. Is it a known issue? And is there any workaround to make the x86 powershell work with 'Add-SignerRule'?
Need some help to target the Group Policy to enable the NTLM audit?
I must audit any computers still using NTLM v1 in my AD Domain. Do I need to enable these group policies for all Windows servers and workstations in my AD Domain or just the Domain Controllers? Computer Configuration\Windows Settings\Security…
Create a retention policy in Exchange Online using PowerShell
How can I use PowerShell to create a retention policy that deletes emails older than two weeks for a specific account in Exchange Online? I want to ensure that only the intended account is affected by the policy. Additionally, how can I verify that the…
"Time to display recovery option when needed" setting
Is there a possibility to check the "Time to display recovery option when needed" setting whether it is checked or unchecked using a Powershell script?
Setting "Specify settings for optional component installation and component repair" through PowerShell
I am trying to set the value of this local policy to "Enabled" and as well "Download repair content and optional features directly from Windows Update instead of Windows Server Update Services WSUS". The target is to set these values…
Exporting sharepoint folders and sub-folders names + permissions
Hi team, I have a SharePoint site with a lot of folders, sub-folders, and sub-sub-sub-folders... Each folder has different accessibility. I would like to export a csv file with: Folder name Folder location Member names who have access (permission) to…
OU Delegation for different groups
Hello and thank you for your assistance in advanced. I have to delegate OU permissions to different groups of technicians. I have about 100 sites. Here's what each groups needs to do. Create, delete, move computer objects; create and delete OUs;…
Task scheduler scripts
Hi All i have 100 plus scripts running on a VM. i have task schedulers running daily, for few weekly. i want to export all the task scheduler scripts to a csv file. using the below syntax i am able to export $data = @() foreach ( $task in…
Powershell script
Hi i want to create a script that runs every time a regular user logs in to one of your clients your domain writes a report with the name “yyyymmdd_computername.txt” and content “hh:mm:ss – username” to a central repository. Someone every time otherwise…