Community
54 TopicsDoes Microsoft stop support WMIC or WMI?
Hello everyone, Nice to meet you! I heard that MS has plans to deprecate and stop supporting the VB script very soon. I have few queries, please clarify Does Microsoft stop supporting WMIC or WMI along with the VB script? Can we use WMI commands in PowerShell scripts? thanks Madhu44Views0likes1CommentI'm unable to execute powershell command in SharePoint
When I execute the PowerShell command, I get a sign-in error. I have tested this in a couple of SharePoint tenants, but I'm unable to run the script. Also, previously, these scripts were working fine. Unable to execute the "Connect-PnPOnline" command. Please someone help with this.262Views0likes2CommentsHow to grant permissions on behalf of the organization Script
Hello everyone! We generated a necessary Script to create a Principal API/APP/Service in Entra ID, and assign some delegated and application permissions. However, I need to consent to these permissions on behalf of the organization, during the Script itself. I have tried several times, in different ways, but all without success. Does anyone know how this can be done? If it can be done? And could you help me with this? Thank you all. Best regards301Views0likes1CommentError - Connect-ExchangeOnline Error Acquiring Token: System.Net.Http.HttpRequestException
Error Connect-ExchangeOnline Error Acquiring Token: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Remote name could not be resolved: 'server.proxy.local'500Views0likes1CommentPS script for uploading files to Sharepoint Online
Hello friends... This process of uploading files from some local storage to Sharepoint Online seems to be the simplest to be carried out via Powershell Script... However, a command/routine in which the password is posted clearly, in plain text, is not " should be" permanent. Do you have any alternative to this? #Copia Arquivos para o Sharepoint Site $FILESP = (Get-ChildItem .\$EXECFOLDER\ -File | Sort-Object LastWriteTime -Descending| Select-Object -First 3).Name foreach ($FILESP in $FILESP) { Write-Host "Arquivo .......... " -NoNewline Write-Host "" $FILESP -foregroundcolor Yellow -NoNewline Write-Host " foi carregado/enviado com êxito!!!" Write-Host "" $WebUrl = "https://organizacao.sharepoint.com/sites/name-site" $LibraryName ="library" $SourceFile=".\$EXECFOLDER\$FILESP" $AdminName ="my-name@domain" $AdminPassword = "my password" #$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($AdminName,(ConvertTo-SecureString $AdminPassword -AsPlainText -Force)) $Credential = new-object System.Management.Automation.PSCredential $AdminName, $AdminPassword $Context = New-Object Microsoft.SharePoint.Client.ClientContext($WebUrl) $Context.Credentials = $Credentials $Library = $Context.Web.Lists.GetByTitle($LibraryName) $FileStream = ([System.IO.FileInfo] (Get-Item $SourceFile)).OpenRead() $SourceFileName = Split-path $SourceFile -leaf $FileCreationInfo = New-Object Microsoft.SharePoint.Client.FileCreationInformation $FileCreationInfo.Overwrite = $true $FileCreationInfo.ContentStream = $FileStream $FileCreationInfo.URL = $SourceFileName $FileUploaded = $Library.RootFolder.Files.Add($FileCreationInfo) $Context.Load($FileUploaded) $Context.ExecuteQuery() $FileStream.Close() #Write-Host "" } Contextualizing: A routine/script executes locally, generates some files that must be placed on a website, in a library, on Sharepoint Online Well, I believe this can shed some light376Views0likes0CommentsPowershell Environment Variable NULL - No repository named PSGallery
I have an SSIS package that runs as a specific user. It calls a Powershell script and it used to work. We rebooted the server and now we get the following error complaining about $env:LOCALAPPDATA being NULL. PS>TerminatingError(Join-Path): "Cannot bind argument to parameter 'Path' because it is null." Join-Path : Cannot bind argument to parameter 'Path' because it is null. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4\PSModule.psm1:95 char:81 + ... osoft.PowerShell.Management\Join-Path -Path $env:LOCALAPPDATA -ChildP ... + ~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand The variable '$script:PSGetAppLocalPath' cannot be retrieved because it has not been set. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4\PSModule.psm1:102 char:86 + ... werShell.Management\Join-Path -Path $script:PSGetAppLocalPath -ChildP ... We also get the following message: Set-PSRepository : No repository with the name 'PSGallery' was found. If the user the SSIS packages runs as, is logged onto the server, the SSIS package works just fine. If I log out and re-schedule the package, it fails again.631Views0likes1CommentPowerShell support on Linux
I am trying to invoke Powershell 7.4 on Linux RHEL8 through a java program and submitting commands and reading output using streams. As soon as the powershell starts , the inputstream is reading some unknown characters from the powershell output for e.g. '[?1h' and '[?1l'. I need a way such that I don't read these characters. I tried setting the encoding in the input stream to UTF-8, but that didn't solve the problem. Would really appreciate if someone could provide some inputs on this.497Views0likes2CommentsProblem with Windows PowerShell
Hi, if I start Windows PowerShell from app. Terminal, the window appears telling me to install the latest version, but I have already installed version 7.4.0 Furthermore, the Windows PowerShell warning appears randomly in the event log with Id: 300, is it possible to eliminate it?Solved965Views0likes5CommentsDefault meeting template for all users in the organization
I have a problem with configuring the default meeting template for every user in the company without their interactions. We have a public folder, I published there a template and I can use it as well as users inside the public folder, if they go to Outlook - Calendar - right click on calendar - properties - in the filed "When posting to this folder use..." - and choose a form from "Organizational forms library". The goal is to set the template up as a default automatically for every user in the company. I know there is probably a way to do that via EMS or Powershell script, but as far as I search in the Internet, there is only Add-ins solutions for that, we want to avoid any add-ins for that. Also, every related articles are more about how to set default meeting template up for the user from the Outlook, but not for the users from Admin perspective. Related articles: Default Meeting Template for all users in the organisation. - Microsoft Community Hub Edit the default body for a meeting for the whole org. - Microsoft Community How to deploy outlook meeting template for all user in the organization - Microsoft Q&A How can we do that ?1.8KViews0likes4CommentsHelp to create a script
Hello, I'm a newbie here and I just want to ask if anybody here could perhaps help me... Sorry for my english.... Here is what I would like : - Check if new contents in /Vidéothèque/A yadiser - Check if it is file or folder - If it is folder check if the file who are in have the same name - If it is doing the same action than for the files who aren't in folder - If it is file who has a name like Cult of Chucky (2017) Unrated MULTi VFI 2160p 10bit 4KLight DV HDR BluRay DDP 5.1 x265-QTZ.mkv Without.Love.1945.MULTi.1080p.WEB.H264-FW.mkv - so create a folder with only the title like Cult of Chucky Whitout Love (whitout point) - and put the files in the good folder - Create in each folder a .txt with the end of the title -QTZ.txt -FW.txt - And erase in the file the same than the .txt to have files like this Cult of Chucky (2017) Unrated MULTi VFI 2160p 10bit 4KLight DV HDR BluRay DDP 5.1 x265.mkv Without.Love.1945.MULTi.1080p.WEB.H264.mkv - When the script see in the title of the filesome tags he put after the title of the folder specials balise like: for 1080p > [HHD] ex. folder : Without Love [HHD] with ex. files inside : Without.Love.1945.MULTi.1080p.WEB.H264.mkv -FW.txt for 2160p [4K] for 4KLight [m4K] for if they see 4K or 2160p and Light [m4K] Cult of Chucky [m4K] Cult of Chucky (2017) Unrated MULTi VFI 2160p 10bit 4KLight DV HDR BluRay DDP 5.1 x265.mkv -QTZ.txt for if they see 1080p and x265 [x265] for 720p [HD] I hope to be clear and than anybody would be kind to help me. Have a good day. PS, I'm on windows10 if it could serve.763Views0likes3Comments