Powershell cript to get list of services accounts
Hello :) I am looking for a powershell script to retrieve the list of local service accounts Thank you
Can I use a variable in my seach base?
Afternoon all, I'm working on a script that will allow folks to generate a list of computer names from an OU they input. The last bit is having an issue with my search base input and I'm trying to figure out what I'm doing wrong. Here is the…
Az Hybrid Connection Manager Configuration - Az Powershell Function
Hi All, I am configuring a Azure PowerShell function to communicate with Windows AD using Hybrid Connection Manager. Everything seems to be connected and I was able to run the basic cmdlet "Get-Service"(Code # 1) successfully. Code # 1 # Input…
Struggeling with Invoke-WebRequest
Hello, I'm trying to parse and download BIOS updates from Dell, when I run the script on a Dell OptiPlex 7080 I get the following error. Message: Cannot convert 'System.Object[]' to the type 'System.Uri' required by parameter 'Uri'. Specified method is…
Silent install of Office using a variable
Hello I`ve wrote a script for installing programs directly from USB drive in powershell, but as before i used the just the paths so start-process "D:\programs\program.exe" for ex. everything was fine but then it stroke me that some computers…
Registry Address appends with folder address, throws error ?!
Hi, I have the below code which adds a newKey in the Registry, then adds Property and Value to the Key. $reg = "Registry::\" $keyPath = Join-Path -Path $reg -ChildPath 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows…
How to deploy color pallets in powerpoint using powershell/gpo
Hi, I want to be able to deploy a color pallet using powershell and GPO in Powerpoint so it will be available for all users in my organisation. Does anyone know how ths can be done or is there a script available?
Access Azure File share through private endpoint
I'm trying to enable backup using PowerShell for the file share of storage accounts. In current environment we disabled public network access and using only private endpoints. I have used Runbook with private endpoint but still failing to list the file…
Set arithabort ON When executing a command from powerbuilder application
Script to Set arithabort ON When executing a command from powerbuilder application once session logon.
TpmVscMgr cmd not working when used with /prompt in PowerShell Windows 10 task
Working on Windows 10, I need to make it possible for a user mode (i.e. non-admin) application to create virtual smart cards (VSC). Yet it seems that VSC's can only be created in admin mode. The solution I have come up with is like so. Register a…
For SharePoint Online, what PowerShell can generate a report of all users who can grant access to others on a site or library or a folder?
Hi there For SharePoint Online, what PowerShell can generate a report of all users who can grant access to others on a site or library or folder? (Users may or may not be a Site Owner, they might have Full Control on just a folder or even just a…
使用Powershell的cmdlet退域出错
场景:域控制器DC1上的计算机帐号PC01被删除且不能找回,终端计算机使用Powershell的cmdlet指令退域; 结果:使用remove-computer进行退域至工作组workgroup失败,但使用GUI进入退域至工作组workgroup成功; 请问如何解决这个故障?
How to fixed error 429 in SharePoint PowerShell
I'm trying retrieve OneDrive site using like this and it's working fine but sometime I get " The remote server returned an error: (429)." I do believe I'm getting that error because I request too many time in my script and getting throttled.…
How to get only values for each server rather than the property names for every server
$servers = Get-Content -path C:\temp\fileshares.txt foreach ($server in $servers) { Write-Host "Getting file shares from $server..." $fileshare = Get-WmiObject -Class Win32_Share -ComputerName $server | Where-Object {$_.Name -like…
How to find Microsoft store xbox game product ID?
Example : https://www.xbox.com/en-us/games/store/dead-space/9NLB6V0GNC9P I want to get Dead-space game product ID : 9NLB6V0GNC9P I use powershell command (Get-AppxPackage) to get some information about packages But do not find any information about…
Using container to run multiple different scheduled PowerShell scripts regularly?
People, I need some help and guidance in deploying Docker or Container on Azure, my aim here is to be able to run Active Directory, M365, Azure and other PowerShell scripts as scheduled tasks. Using this…
Script exclusão de usuários windows server
Estou com um problema em um script que criei para fazer a exclusão dos usuários com mais de 30 dias sem logar, e fazer a exclusão de suas respectivas pastas no servidor, porém quando rodo o script não acontece nada, ele não dá nenhum erro, porém também…
Searching registry key, find its property, and replacing the value ?!
Hi, I'm going registry because when I do a backup-GPO with Powershell in Windows Server 2022, and restore it in a different server it does not restore the Network Manager List - Network Name Value (which is TEST in this case). I want to find a registry…
SBM for windows server 2003
Hello I would like to active SMB 1.0 /cifs file sharing support in windows server 2003, i don't have powershell. can i active the SMB 1.0 via manage your server (old version of server manger)? Thank you
RAID Volumes and RAID Levels (if any) with PS or VB.net
Hi, Is it possible to know if the disk has RAID configuration or not. If RAID is configured, the information of the RAID volumes using VB.Net or PowerShell? This is what I have checked so far, but not desired results: …