Team Foundation Server
5 TopicsAny way we can tag only some set of people in a private channel in teams through power shell?
as we cant create tags in a private channel in teams, and since I can only create a limited no of private channels in a team, that's why I need to tag those specific people in an already created private channel, and those are 60-70 people, so I can't tag them one by one.362Views0likes0CommentsCreate Share Folder and Set ACP Permission
Hi Everyone, Actually I am looking for a script to do the following in result: 1- Create and Share Folder as the following permission: A\Authenticated Users: Read 2-Disable Inheritance from upper folder (root folder) 3-Add Description (in the comments): This folder to be used via user1 3- Set ACl Permission as the following (Domain a.com): A\SG1: Full Control, A\SG2: Full Control, SYSTEM: Full Control, A\SG3: Read, A\SG4: List Folder Contents, A\SG5: Write, A\user1: Modify 4- the Set Share & ACL is inherited on the Subfolders and files where: SG1, SG2, SG3, SG4, SG5 are Domain Security Groups and user1 is a domain user Actually, I found some scripts but not to grant multiple SG access on the share folder. Thanks5.8KViews0likes2CommentsThe PowerShell script that's worked for 2 years to find a signing certificate, stopped working
This is an on-prem TFS question. Yesterday I put a certificate in place to handle signing ClickOnce deployments. However, it fails to apply the certificate. The guy who wrote these release scripts before me, the former TFS administrator, was a PowerShell guru. I am not a PowerShell guru. However, I can muddle my way into trying to figure out what is going on, up to a point. The errors occur in the Release, not in the build. The first error that appears is, "You cannot call a method on a null-valued expression". I believe I've found the line where that error occurs, from the PowerShell++ script he uses. It is here: $cert = ls cert:\ -Recurse -CodeSigningCert | ? {$_.Verify()} | Select -First 1 I've broken this line down into its parts. Ignoring the assignment to the variable $cert, this part of the PowerShell script works: ls cert:\ -Recurse -CodeSigningCert When I run it on the TFS build server, running PowerShell as the account used for performing builds and releases, it produces 4 lines of results. However, the rest of the line: | ? {$_.Verify()} | Select -First 1 I believe rults in assigning a NULL to $cert, which agrees with the first error message in the TFS Release log. This same script has worked fine, for two years. Why has importing a new certificate into the TFS build server certificate store made this assignment fail?Solved3.8KViews0likes12CommentsNo Output cvs file
Hi, I have the following code.. It runs with no errors but does not give any output: $rec_cnt = 0 $data_conv = (Get-Content $destFile2) $result = foreach ($line in $data_conv) { $line.host if ($line.IsError -eq " " ) { $line.IsError = 9 } if ($line.severity_id_and_name -eq 1 -or $line.severity_id_and_name -eq 2 -or $line.severity_id_and_name -eq 4) {$line.IsError = 0 } Else { if ($line.severity_id_and_name -eq 3) { $line.IsError = 1 } } $rec_cnt = $rec_cnt + 1 } # close Foreach loop $result | Set-Content $destFile3783Views0likes1Comment