
SAPIEN Forums » PowerShell
1,000 FOLLOWERS
Since 1990, SAPIEN Technologies has produced information technology and software solutions that make a difference. Today, we're focused on making IT easier, through a best-in-class suite of solutions that include software, training, publishing, and community. This section of the forum is a place to discuss PowerShell.
SAPIEN Forums » PowerShell
5h ago
You do not need a script to do this. There is a command line utility that ncan set this in one line. Post in the Micorwsoft Windows 10 user forum to get the utility or search on the Inet.
powercfg /?
powercfg /setactive ded574b5-45a0-4f42-8737-46345c09c238
Statistics: Posted by jvierra — March 29th, 2023, 8:49 pm ..read more
SAPIEN Forums » PowerShell
5h ago
Hello, everyone. I want to use a PowerShell script to adjust the Power Mode slider in Windows 10 from the default ‘Balanced’ to ‘Best Performance’. I found an existing script that cycles through the 3 power mode options to correct a specific issue. However I would like to massage it to just do a one time change from balanced to best performance. Any help is greatly appreciated!
Code:
# Toggle power mode away from and then back to effective overlay
$togglePowerOverlay = {
$function = @'
[DllImport("powrprof.dll", EntryPoint="PowerSetActiveOverlayScheme")]
public static extern int PowerSetActi ..read more
SAPIEN Forums » PowerShell
5d ago
Can be firewall or other network issues. PowerShell has nothing to do with the errors.
Who is you network engineer. Just having an admin account does not guarantee access to the service control manager and the RPC ports for WMI. Client computer firewalls block this access by default. Sometimes the server may not have these ports opened.
Statistics: Posted by jvierra — March 24th, 2023, 1:01 am ..read more
SAPIEN Forums » PowerShell
5d ago
You do not have access rights on the services and on WMI. Please ask you server administrator for help with this.
Hi Mr. Vierra,
I am the Domain Admins, my user account is also part of the Enterprise ADministrator group.
So not sure why this is the issue.
Statistics: Posted by ITEngineer — March 24th, 2023, 12:45 am ..read more
SAPIEN Forums » PowerShell
5d ago
You do not have access rights on the services and on WMI. Please ask you server administrator for help with this.
Statistics: Posted by jvierra — March 24th, 2023, 12:29 am ..read more
SAPIEN Forums » PowerShell
1w ago
I am having issues where I am unable to assign the value of the variable $Folder_Access_Check.Identity to an array.
Outside of Powershell Studio 2023 (in ISE) I have the same code working without issue and I'm trying to move it to a GUI but can't seem to work around this issue. Any advice would be appreciated
Code:
$DATA_ACLS = RandomName
$Folder_Access_Checks = Get-Acl $FolderPath | ForEach-Object { $_.Access } | Select-Object -Property @{ n = "Identity"; e = { $_.IdentityReference.ToString().Split("\")[1] } }
If ($cmb_organisations.Text -eq "My Org")
{
Foreach ($Folder_Access_Check in $F ..read more
SAPIEN Forums » PowerShell
3w ago
Aside from your code being a bit sparse, you also do not provide any error information.
I also notice that you have omitted the PowerShell version as well. Given that there is Windows PowerShell, PowerShell 7.0, 7.1, 7.2 and 7.3 all using different .NET versions, this is an important tidbit.
If you have isolated the code causing the problem, run it in a console. Do not use try and catch but let it show the actual error message.
Most likely your system log will also hold additional details.
Outlook is a Microsoft product. They are ultimately much better equipped to tell you what is happening, p ..read more
SAPIEN Forums » PowerShell
3w ago
Hello Group,
unfortunately this problem persits...
Is there a chance to get some help?
Thanks a lot
Statistics: Posted by ralf_jantschek — March 7th, 2023, 8:34 am ..read more
SAPIEN Forums » PowerShell
1M ago
This is the powershell command i'm trying to build a package of to uninstall ie11:
Enable-WindowsOptionalFeature -FeatureName Internet-Explorer-Optional-amd64 -Online -NoRestart
here's the output
SAPIEN Package and Deploy Tool 4.6 (c) 2005 - 2023 SAPIEN Technologies, Inc.
Processing input files...
Processing settings...
heatout.wix
C:\Users\willka\American Water\Endpoint & Collaboration - Workspace One\WS1 Powershell Repository\PowerShell Studio\heatout.wix(26) : error CNDL0104 : Not a valid source file; detail: An error occurred while parsing EntityName. Line 26, position 114.
Error ..read more
SAPIEN Forums » PowerShell
1M ago
I keep getting these COM errors when I'm running my scripts. It's different errors on different computers. Some say "Retrieving the COM clss factory component for CLSID failed with error "80080005 Server execution failed" and the other error is "80040154 Class not registered". I've also seen Exception calling "ReleaseComObject" with "1" argument(s): "Object reference not set to an instance of an object".
This program used to run fine when another user was working on it, but now when I compile and run it, I get these errors.
I'm stumped as to what's going on, and there's nothing in the logs th ..read more