• Activity
  • Votes
  • Comments
  • New
  • All activity
  • Showing only topics with the tag "powershell". Back to normal view
    1. Help with strange Windows 10 behavior/files. Do I have a virus?

      Edit2: I'm a mac user who doesn't understand how windows explorer works. Leaving the post for some hapless mac user who may come along. Windows explorer doesn't report how it is traversing the...

      Edit2: I'm a mac user who doesn't understand how windows explorer works. Leaving the post for some hapless mac user who may come along. Windows explorer doesn't report how it is traversing the directory tree, leading to some confusion about where the search result is, which happens to be waaaay down in a zip of a mac application installer I had inadvertantly archived on the Windows disk. I would ask any windows users, how do I make powershell ls | select-string "text" behave like ls | grep "text" on unix?

      edit3: Also, why the fudge would windows explorer search find <weird characters>net but not dotnet when typing 'net' into the search box?

      So I download the occasional, um, linux distro installation video. I use a vpn and private firefox windows for most.

      I'm doing some clean up today, and find a file with a bunch of strange characters, including the text characters, "net." "M⌐⌐v├▒├┼⌐▒net" is the filename listed in the properties window. Inside are a series of .ase files with mostly unrecognizable names.

      I don't see the filename when doing an ls in powershell of the directory reported in explorer.

      doing ls | select-string "net" in powershell results in an unending peristalsis of weird text like you might get from a binary file viewed in a text editor. I do notice, however, that some of the text might be from inside a zip file. But why is select-string searching inside the zip file? ls seems to ouptut only filepath information. Upon further investigation, the zip file is several directories down, it appears adding | select-string to ls makes ls travel the full tree. Wut?

      And when I say undending, I mean it kept going until I hit ctrl-c.

      Any ideas to what is happening here?

      Incidentally, I opened one of the ASE files by right-click->view file in notepad+, which never launched.

      Edit: lots of edits.

      12 votes
    2. PowersHell and graph - setting SharePoint folder permissions help

      Hello folks Recently we've been playing with Powershell and having to move on to graph to do all the fancy things we want to achieve. MS forced this when they suddenly decided the MSOnline module...

      Hello folks

      Recently we've been playing with Powershell and having to move on to graph to do all the fancy things we want to achieve. MS forced this when they suddenly decided the MSOnline module was retired and things stopped working.

      We've built a great New Team with SharePoint and including folders script. One of the things we used to do with the PNP module is set folder permission on two of the folders in a new team, making them only accessible to Owners. How the devil does one achieve this with Graph?

      Any pointers would be grand.

      8 votes