Skip to main content
0 votes
0 answers
9 views

Environment Approvals with Powershell

I am trying to create a azure pipeline Environment using Azure DevOps REST Api and powershell,I am able to get the user descriptor and create environemnt but not able to construct approval payload. ...
Riyo's user avatar
  • 1
1 vote
1 answer
35 views

Why does Import-Module import into the calling module's scope, while New-PSDrive creates a drive in the scope which called the module?

Per Import-Module's -Scope parameter documentation: By default, when Import-Module cmdlet is called from the command prompt, script file, or scriptblock, all the commands are imported into the global ...
mmseng's user avatar
  • 922
0 votes
1 answer
51 views

How to print target of .lnk file in powershell/cmd; (Single file) [duplicate]

So I am attempting to print the target of the shortcut because when opening the properties the target goes off the window and you can not select it in any meaningful way to display the full target. I ...
Z.Davey's user avatar
  • 77
0 votes
0 answers
71 views

New-MgServicePrincipalAppRoleAssignment : Resource '1***1' does not exist or one of its queried reference-property objects are not present

I have an azure function and i enable its managed identity , and i got a principle id "1***1":- Now i tried to run this command based on this official documentation from Microsoft https://...
microsoftdeveloperdesigner's user avatar
0 votes
0 answers
45 views

How to force the browser (Chrome) to refresh DNS from OS Level (Windows)? [closed]

I’m feeling quite desperate and would really appreciate some help. I'm currently trying to block certain domains using Windows Firewall rules. $fqdn = 'example.com' $id = '{' + (New-Guid).ToString() +...
Luca Köster's user avatar
0 votes
0 answers
30 views

Windows print job successful with 0 bytes/pages

I'm periodically printing out automatically generated PDFs via Powershell on the office printer (network), from a VM Server. It usually works, but every now and again, no document comes - as in, if 5 ...
youreallydontneedtoknow's user avatar
1 vote
1 answer
73 views

Type of operator in powershell

i read analyse of code and i can't determine what type of operator and how it works, it's powershell, can you help me please. I can't understand what is the operator and how it works : ${xadeoc} [ +52 ...
mobile_beginner_2015's user avatar
1 vote
1 answer
55 views

Why is Docker not persisting PowerShell modules and repositories in my container?

I'm trying to create a standard container for running builds under Jenkins. The container needs to have PowerShell installed, a global PowerShell module installed (Prism), and our internal PowerShell ...
Aaron Jensen's user avatar
  • 26.9k
1 vote
0 answers
34 views

SSRS bulk upload, how configure asmx/ wsdl with PS script?

all can't figure out how I can talk to wsdl on SSRS server. My goal to have PS script to upload 100 rdls. Many posts I think are really outdated. From this MS help doc I'm able to see it, is this is ...
Mich28 's user avatar
  • 569
0 votes
0 answers
27 views

regex match exact string or string with specific next character [duplicate]

I want to test a string for something like 'UNIT_40' or 'UNIT_40\' but want to exclude strings like UNIT_4080. I can search for 'UNIT_40$|UNIT_40\\' but is there a less redundant way to craft the ...
badbob001's user avatar
0 votes
0 answers
37 views

Register a Windows Service via PowerShell with credentials

I'm creating a pipeline to deploy Windows Services from Azure DevOps to a Windows Server. At the end of the release pipeline, I register the service in the machine with SC CREATE myservice start=auto ...
Enrico's user avatar
  • 6,378
2 votes
2 answers
56 views

Forward ValueFromRemainingArguments to function

I have something like the following.. Param( [Parameter(Mandatory)] [ValidateSet('Command1', 'Command2')] $Command, [Parameter(ValueFromRemainingArguments)] [string[]]$Remaining ) function ...
Maarten ten Velden's user avatar
0 votes
0 answers
60 views

Deleting and removing PIM role assignment in Azure - error No HTTP resource was found that matches the request URI

I have noticed during my testing that when an Entra group is created and configured for PIM, if the group is later deleted but yet configured for PIM, the PIM configuration stays thereby creating an ...
learner's user avatar
  • 1,051
1 vote
2 answers
68 views

How to delete pipeline tags with special characters?

I want to delete specific tags attached to Azure pipeline builds, for example "hello: world". I've come to the conclusion that the ADO REST API endpoint for handling Tag deletions cannot ...
SolidCoder's user avatar
1 vote
2 answers
65 views

Apply Where-Object shorthand operators to entire object

Where-Object's params providing shorthands for builtin operators, one can skip the scriptblock and write: Get-ChildItem | Where-Object { $_.Name -match '\.(txt|md)$' } as: Get-ChildItem | Where-...
Dominik Kaszewski's user avatar

15 30 50 per page
1
2 3 4 5
7945