Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script to fix invalid characters for SharePoint synced share

$
0
0

I'm hoping for some help implementing a script that will rename files with characters that are invalid for SharePoint, in a synced file share that is accessed by everyone at an office.  

Some background: I'm working for a small nonprofit that has a SBS 2012 server and a local domain with about 30 users. I'm the sole volunteer IT person here.  We have a network file share on the server that everyone stores their documents on.  Recently, we signed up with Office 365 Online and I set up a SharePoint library and synced it with the document share on our server.  A few files aren't being uploaded, though, because of invalid characters (For instance, a file like "Outline/Team plan #3.doc" )

Expecting everyone to remember not to use any of the invalid characters isn't really a solution, particularly since I'm not here full-time if things go wrong.  I'm looking for a script to run on the server every few minutes that will rename any incompatible files so that they can be uploaded to SharePoint.  Personally, I think it's just plain criminal that Microsoft hasn't provided this functionality itself (it's the least they could do) but that's another rant for another time.  Unfortunately, while I do have a couple of years of experience with basic server administration and group policy, I'm not experienced at all when it comes to PowerShell scripting.  I can string together some command line commands in a batch file, and that's about it.  

I did find this promising post here: 

http://community.spiceworks.com/scripts/show/2097-fix-file-names-for-skydrive-pro-syncing

I was hoping for opinions - is this the sort of thing I'm looking for, and what would be the best way to implement it (eg, every few minutes as a scheduled event)? Also, is this a straight-up powershell script, or are there additional languages/resources involved? (Like I said, I'm sort of a script newbie).

Additional background: I posted a similar question asking if it could be done with GPOs, and they directed me here, suggesting it could be done with scripts. 

Thanks!!




Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>