Content
Powershell Get-SMBOpenFile output question
Hello. I have a script that is running the Get-SMBOpen file command, and outputting the results to a text file. When the ShareRelativePath entry is not long, the following output is shown on-screen: FileId SessionId Path …
Convert PS1 script to one liner - new scheduled task
Is there a way to convert this script only to 1 line. When I try to open the variables, I get the error. # Create a PowerShell script that contains the Restart-Computer cmdlet $script = "Restart-Computer -Force" $scriptFile =…
AIP Custom Permission via Command line argument using C#
Team, Please refer the below PowerShell command to apply custom permission to MS office documents:- PS C:> $permissions = New-AIPCustomPermissions -Users user1@contoso.com, user2@vanarsdel.com -Permissions Reviewer -ExpirationDate (Get-Date -Month 1…
I get no hash files using Get-FileHash.
I wanted to get file hash in folder mounted to nas, but, I think it works, nothing error happened, but no output generated. PS C:\windows\system32> Get-FileHash -Algorithm SHA512 -Path "\\mynas\something\folder\file.abc"
How would you sign a .jar file using the Azure Key Vault in a Dev Ops Pipeline
The requirements for code signing is that the certificate must be in a HSM based environment. Azure Key Vault is supported, so how does one sign a .jar file when the certificate is in an HSM environment? The certificate is non-exportable.
Get-Nettcpconnection question for remote computer
Hello. I am experimenting with the Get-Netcpconnection command, and I am trying to combine the '-AppliedSetting Internet' option with 'CimSession' in order to get the intended output for a remote system. I am having problems getting the two to work…
How to sort the values in parameter drop-down menu in Power BI Paginated Report?
I have a text parameter in a Power BI Paginated Report, but the order of the drop down parameter values is scrambled. How to sort the values in parameter drop-down menu (NOT result values) to be in ascending or descending order?
How count al items individuelle
Hello Pls, I have : $array = "ich ich du du du ich ich du du du ich ich du du du" | group # or any txt How count all items individuelle ? Like ? : ich = 6 du = 9 Thank for your help Arnold
how can i re-download microsoft store?
Hi, every time I try to open my MS store, it doesn't open, and when i try to re-install it from PowerShell, it stays on "Initializing" or "processing." when I run the command wsreset, it tells me I have to download an application to…
Need a PS command to give me a list of suspended accounts there the IPphone field is not null or blank
Need a PS command to give me a list of suspended accounts there the IPphone field is not null or blank
PowerShell Script needing to pull "Date Modified" on folder properties
Hi All, I am working on a PowerShell script that needs to export to CSV file all folders that are up to 3 levels deep The script needs to pull the permissions from the folder as well as the Last date modified of the folder. I have the…
The attempted operation is prohibited because it exceeds the list view threshold
Hi, I am trying to create a bulk folder list to a Shared Documents/subfolder1 on Sharepoint Online but i keep getting the threshold error. There were 3790 already there with files inside them and i did attempt to upload 4993 new folders but it started…
Install and setup SMTP on a windows server using Powershell DSC
I am currently using Azure Automation State configuration (DSC) to setup a SMTP server. Installing the feature has been fine but I cant seem to find how to configure the SMTP settings such as the virtual server, relay info etc. So I'm wondering if anyone…
Policy is not applying
Hi All I am using exchange hybrid environment. We create users in onprem and migrate to online. i have a csv file in the below format. When user is added to an onprem AD group(MyADGroup1), i want TeamsAppPermissionPolicy (TeamsAppPermPolicy1) and…
Find Azure users who have not signed in within 90 day's / Inactive users.
Looking to list all inactive users using powershell. Ive tried many methods such as Get-Aduser etc. but I always find recent users within the list. Looking to query Azure AD so I can also get cloud accounts Ive arrived at below. $users = Get-AzureADUser…
0x800b0109 - A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider
I have a Windows 7. How can I install MS PowerBI Desktop Setup? I tried several fixes for the error, none seam to work. 0x800b0109 - A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider One of…
Unable to update log on credential of service via powershell
Powershell verision is 5.1 i am able to update the username and password manually of a server. I am unable to achieve that through powershell. tried the below. am getting return value 15 when i start $account = "<the account name>"…
How to report the size of a cluster shared volume in PowerShell?
I need to know the size of Azure Stack HCI cluster shared volumes, and because I found no better command, I started with: $a = get-clustersharedvolume -cluster 'clu' -name 'vol' $a | format-list -property * One of the properties I think is the one that…
Unable to connect to a sharepoint site from powershell
Hi, I am trying to connect to a sharepoint site from powershell using this command Connect-PnpOnline -ClearTokenCache -SPOManagementShell -Url $SiteUrl when I run this command it is giving two popups Microsoft login popup Site login popup After…
Folder size and date Using PowerShell instead of 3rd party mentioned below
Please assist on following 2: 1. I want to all folders size ( which consist nested folders ) in side the main folder. I have found below one. But is there any Microsoft supported tool to achieve this.…