powershell - NTFS permissions
Hi Everyone I need to create a script that will set NTFS permissions on files og folders. Its important that the script only adds permissions. I am struggeling a bit getting it to work. I have made many changes to get it to work, but i end up the…
Print Spooler
Hi, I need to create powershell to monitor print spooler which is keep on stopping. The conditions are for the ps to restart print spooler 3x before alert is being generated in scom. Below are my initial scripts. (Sorry I'm super newbie in…
PS script running as a service
Trying to get a script to run as a service using NSSM, following this guide Service appears to be installed. PS C:\powershell> Get-Service $servicename Status Name DisplayName Stopped PMimagewatcher PMimagewatcher When I try to start it, get this…
Bulk Modify Attributes
Hell Everyone i created an excel sheet to bulk update some attributes for example Display Name , UPN, Addres , Office Number , Mobile Number, country , city, title, company. But i cannot seem to get a powershell command to work. Would anyone have any…
How to solve the error message when executing bat automation batch file? B A T C H R E C U R S I O N exceeds STACK limits
How to solve the error message when executing bat automation batch file? B A T C H R E C U R S I O N exceeds STACK limits I wrote a series of automated scripts, but after executing them, error messages will jump. How can I solve him? ****** B A T C…
LDAP filter optimization
Hello, I have the following filter to select users from multiple groups. As these groups all have the same parent OU path, is there any way I can simplify this filter to remove the need to remote the common parent path for each sub-group ? Thank you.…
JEA to enable remote user (No Admins) to reboot a system / event id 10016 COM 9CA88EE3-ACB7-47C8-AFC4-AB702511C276
Hi I've tried to use Powershell JEA to enable a group of normal users to run the cmdlet 'restart-computer', but when the user runs the command we get Event ID 1001 in Eventlog. The users are allowed to execute the cmdlets 'restart-computer' and…
powershell system.object.tostring() problem
Hello everybody, i have to write a powershell script to backup an azure blog storage. I want to send the result as an email. But I don't get the result, but "System.Object []" as the mail body. The script works perfect, I'm able to…
![](https://techprofile.blob.core.windows.net/images/731e2ee099fa4d118d89bc3d98e73a1f.png)
![](https://techprofile.blob.core.windows.net/images/731e2ee099fa4d118d89bc3d98e73a1f.png)
Create variable with mutiples tables
Hello, I do not know how to phrase that question correctly so I will try with example. Here is the JSON example of what I'd like to recreate in PowerShell format: [ { id : "001", name : "apple", …
Cisco VPN and Folder Redirection
Hello and hope everybody is keeping well in these difficult times. Please could someone help with the following query. Query Summary How can we get folder redirection for desktop, documents, IE favourites etc to work when there are a large…
Add blank line to top of combobox
I have a combobox showing all security groups in alphabetic order, the code used is: $groups = Get-ADGroup -Filter 'GroupCategory -eq "Security"' | Select-Object -Expand name | sort-object $editusersecgroupentrybox.DataSource = $groups This…
combobox displaying @attribute = value
I have set up a GUI to allow service desk staff to manage accounts. As part of this I want to have a dropdown box listing all the security goups so they don't have to type the group name and path. The combobox is populating with the group names, but…
How to retrieve all empty OU in all my AD
Hi all I would like to know all empty OU existing on my AD. I found a powershell command line below which retrieve this information: Get-ADOrganizationalUnit -Filter * | ForEach-Object { if (-not (Get-ADObject -SearchBase $_ -SearchScope OneLevel…
![](https://techprofile.blob.core.windows.net/images/DOuxpP5_BgAAAAAAAAAAAA.png?8D83F5)
Using variable tor -path value
I am tying to create a Powershell script to create user accounts, not a difficult task normally. However, I have been asked to create a GUI (already done) that allows the person creating the account to enter the users information and hit a button to…
![](https://techprofile.blob.core.windows.net/images/NzSFRY4LvUmCsZvxOuSTQA.png?8D80B7)
Custom cloum creation
WSUSCL02-2012 Monday, August 10, 2020 5:03:08 PM X Status KB Size Title 2 Accepted KB3172729 10 MB Security Update for Windows Server 2012 R2 (KB... 2 Accepted KB3175024 12 MB…
![](https://techprofile.blob.core.windows.net/images/NzSFRY4LvUmCsZvxOuSTQA.png?8D80B7)
Powershell script windows xp , 7 , 10
Hi ! i made powershell script for create vpn profile on Windows 10 , but this script doesn't work on windows xp , embedded standard and 7 . our pos system still using windows those windows version. and we need using L2TP client vpn of Cisco Meraki , …
![](https://techprofile.blob.core.windows.net/images/NzSFRY4LvUmCsZvxOuSTQA.png?8D80B7)
Runas current user from system account without creditials using powershell
Hi Team i am trying to retrieve the certificate details using powershell for the current users from my application. Application is running in system account and not able to switch current user and retrieve the certificates using powershell invoke…
![](https://techprofile.blob.core.windows.net/images/NzSFRY4LvUmCsZvxOuSTQA.png?8D80B7)
Unable to list access list in powerbi workspace using powershell
hi Team, I want to extract the report of Access list of Powerbi workspaces like who has Member\Admin\Contributor\Viewer. Im unable to find the command for that. i pre-assume command should be something like "get-PowerBIWorkspaceUser" but…
![](https://techprofile.blob.core.windows.net/images/NzSFRY4LvUmCsZvxOuSTQA.png?8D80B7)
Calling an API from powershell
Hi All. I am trying to write a script that will call an API from powershell 100 times, the equivalent curl script is as follows. curl --location --request GET 'https://my-api-url/224/employee' \ --header 'URN-Token: xxxxxxxxxxxxx' \ --header…
![](https://techprofile.blob.core.windows.net/images/NzSFRY4LvUmCsZvxOuSTQA.png?8D80B7)
file path / name are trancated in powershell
cmd.exe /c powershell.exe Get-FileHash -Algorithm SHA256 -Path (Get-ChildItem '.\Single Cycle*.*') > SHA256_report.txt it does not display full information, e.g. Algorithm Hash …
![](https://techprofile.blob.core.windows.net/images/NzSFRY4LvUmCsZvxOuSTQA.png?8D80B7)