Disconnect/remove PSTs from users profile with logging
Hi all,
I would like a script that removes (but does not delete) all PST files (except Sharepoint lists) attached to Outlook on a machine (for all users) with logging. I found the script on another site but I would like it to create a log file which records what
it has actually done (machine|user|location of PST that was removed|time it was removed). Can anyone help with the logging bit please? I am thinking include the script as part of logon script and have the log file save in a network location.
Current script is this:
On Error Resume Next
Dim objOutlook 'As Outlook.Application
Dim Stores 'As Outlook.Stores
Dim objFolder 'As Outlook.Folder
Dim i 'As Integer
Set objOutlook = CreateObject("Outlook.Application")
Set Stores = objOutlook.Session.Stores
For i = Stores.Count to 0 step -1
If Stores(i).ExchangeStoreType = 3 Then
If Stores(i).DisplayName <> "SharePoint Lists" then
Set objFolder = Stores(i).GetRootFolder
objOutlook.Session.RemoveStore objFolder
End if
Else
End If
Next
Thank you in advance for your time.
Hello,
You can use VBA Logger for adding log statements to the existing code.
The
RemoveStore method of the Namespace class removes a Personal Folders file (.pst) from the current MAPI profile or session. I.e. the method removes a store only from the Microsoft Outlook user interface. You cannot remove
a store from the main mailbox on the server or from a user's hard disk using the Outlook object model.
Similar Messages
-
Hi Team,
We are using SharePoint 2010 server with service pack 1, we want to remove/delete old user profiles, access & site from server
is there any script or feature available using that we can only remove dactivated/deleted/old user profiles, access & site.
Thanks
NPratikTake a look at Metalogix ControlPoint, which will compare user accounts on SharePoint to Active Directory and remove accounts that no longer exist in AD (or are disabled).
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Disable or Remove some field from User Profile in Personalize iView
Hi All,
I have a requirement to Disable one field and Remove one field from User Profile in Personalize iView.
i want to disable Activate Accessibility Feature field and Remove Language field.
How to archive this.
Thanks and Regards
TrilochanHi,
You can use [Personalization|http://help.sap.com/saphelp_nw70/helpdata/en/42/ed3ce7f8593eebe10000000a1553f7/frameset.htm] to do this :
1. logon as an admin and navigate to Portal Content > Portal Users > Standard Portal Users and open Every User Core Role
2. right click on User Profile and select edit
3. click on the Preview button then right click + CTRL on the iView and personalize the User Profile iView
That's it.
Regards,
Pierre -
Propagate Data from User Profile to Resource Process Form doesn't work
Hi,
i've created a new custom task for Propagate Data from User Profile to Resource Process Form with a gtc connector but the task is never triggered!!!
i need clues to resolve this .
thnks.!!
oim 11g 11.1.1.5 bp4. high availability with 2 nodes and a balancer.Hi Rajiv:
->Did you make that entry in Lookup as mentioned in that thread/post ?
ANSW: yes.
->Did you use exact naming convention for your tasks ?
ANSW: yes i put the same name that i put in the lookup into my process from.
In which process definition have you created your task. Make sure it should be other than "Xellerate User" process definition.
ANSW: PROCESS DEFINITION: * iPlanet User
*TB_BAN1_AUR_GTC
*TB_BAN5_AUR_GTC
*TB_BAN3_AUR_GTC
etc.. GTC conector.
i have a test environment where this functionality works succesfully and i put the same in my production environmnet and the task never is triggered. -
Approval work folw while Deleting the user from user profile
Hi
I have a requirement like
I configured AD as auto provisioned.
How to configure approval workflow, when administrator deleting the user from user profile (xellerate form).
FYI, Delete task assigned as undo task for the create user task
Thanks
Edited by: user11963802 on Dec 15, 2010 2:31 AMCreate one approval workflow and create one Process Determination Rule like
If
Request Action == "Revoke"
Attach this rule with RO.
Hey sorry
I shared the information for Revoking user from target Application.
Hide Delete User button from JSP
You can create Dummy Resource with Approval workflow for Deleting User. And after getting approval you can use DeleteUser API to delete user from OIM.
Edited by: Rajiv Dewan -
Remove applications from the "open with" menu
How do you remove applications from the "open with" context menu? I seem to have one instance of a program for every time it was "updated." So my "open with" menu has about 8 instances of Adobe Acrobat, 3 or 4 of Word, etc. It's obnoxious and cumbersom. Any idea how to edit this context menu? Thanks.
hi joshua,
you can solve it in two ways:
1)open terminal and copy and paste:
/System/Library/Frameworks/ApplicationServices.framework/\
Frameworks/LaunchServices.framework/Support/lsregister \
-kill -r -domain local -domain system -domain user
enter and wait the prompt
2) delete this files and restart
library/caches/com.apple.LaunchServices-xxxxx.csstore
(more than one files with the xxxx i mean number)
~/library/preferences/com.apple.launchservices.plist -
AppLocker Policy to stop executable running from User Profile
I am in process of implementing Applocker in our Environment.
To protect the clients from Malware attacks I want to configure a policy through which all the executable files can not run from User Profile. However I may have few executable files which must run as exception to this rule from the user profile.
Please help.What exactly is your question?
You can set up applocker to prevent all exes from running and then list your exemptions.
You will also have to set up about 7 other exemptions for the users to actually be able to login.
Also note that Applocker only works with Windows 7 Enterprise and Ultimate. Not professional. -
Use Department field from user profile
Hi,
When user uploads a document - "Created By" takes its name automatically.
We need the data of the department of the user also.
I see that i can change the column to display any field from user profile in the "Created By" (user name / email/ department...).
What should i do in order to use more than one field? (it's like set 2 "created by" columns to each doc - one to get the user name and one for department).
It is for use department values in search.
keren tsurHi keren,
According to your description, my understanding is that you want to get user name and department for the user who created the document.
I recommend to get the department using the default Created By column and use workflow to get the user name from Created By column in a new column.
Create a workflow associated with the library and set the workflow to start when an item is created.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
RAR: Risk resolution options , Remove access from user is disabled
Hi All,
In RAR , After risk analysis, if we click on risk description 3 Risk resolution options are there.
Mitigate Risk
Remove access from user
Delimit access for user
In these options mitigate risk only working.I am using GRC SP 5.
How about other two options , save button is disabled.How to enable this?
can we remove/delimit access to user using these options? any body tested these options?
Thanks n Regards,
JosephJoseph,
These functionalities do not exist in the tool and these buttons have been in the RAR for past 2 years. SAP wants clients to use CUP for removing or delemiting access so I highly doubt this will ever work.
Alpesh -
User Profiles with roles & responsibilities.
How do create the User Profiles with roles & responsibilities in sd
Hi,
This is done with T. Code PFCG. Here we select the userid and give the required roles with which tell what the users can or cannot do.
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9d/39d0401117dd50e10000000a1550b0/content.htm">PFCG info 1</a>
<a href="http://help.sap.com/saphelp_sm40/helpdata/en/57/3fc0413f1b6524e10000000a1550b0/content.htm">PFCG info 2</a>
Hope this helps. Please reward if useful.
Thanks & Regards
Sadhu Kishore -
Is it possible to remove blemishes from video frames with photoshop cc?
Is it possible to remove blemishes from video frames with photoshop cc?
Again, show us reference screenshots and we will advise. Otherwise this could become an endless theoretical discussion. Depending on what you want to do you can import the video directly using Layer --> New Video Layer e.g. when covering up fied spots with a brush blob on a layer on top of the footage, but you may also need to create separate layers for each frame using the Frames to Layers script so you can paint on each of them individually. There's really too much we don't know and the possibilities are potentially infinite...
Mylenium -
Powershell script to get all user profiles with specific email address
Hello,
Please help me. I need a powershell script which can do the following things.
List of all sharepoint user profiles with email address
[email protected]
List of all FBA user profiles with email address [email protected]
List of all Pending Access Requests
Any help is much appreciated. Thanks.
chiragThe script is not working for me. I changed the url according to my site. See the below error
New-Object : Exception calling ".ctor" with "1" argument(s):
"UserProfileApplicationNotAvailableException_Logging ::
UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does
not have 3f3a5705-0691-4fe8-8643-cccd65363dc9"
At C:\Scripts\userprofileemails.ps1:11 char:19
+ $profileManager = New-Object
Microsoft.Office.Server.UserProfiles.UserProfileMan ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvoca
tionException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power
Shell.Commands.NewObjectCommand
You cannot call a method on a null-valued expression.
At C:\Scripts\userprofileemails.ps1:12 char:1
+ $profiles = $profileManager.GetEnumerator()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Please guide me what to do on this.
Thanks
chirag -
Removed myself from users group
Yesterday, I was trying to setup a mail server following this: http://www.howtoforge.com/arch-linux-ma … nd-dovecot and I accidentally removed myself from users group
[yasar@yasar-laptop ~]$ id
uid=1000(yasar) gid=12(mail) gruplar=12(mail)
Now, I am thinking to issue this command:
usermod -g users -G audio,lp,optical,storage,video,wheel,power yasar
Is this command good? I just wanted to be sure. I don't want to break stuff again.Just run this command as root:
gpasswd -a yasar users
Last edited by anonymous_user (2012-01-12 16:40:45) -
What is the URL to ad and remove devices from my profile account?
What is the URL to ad and remove devices from my profile account?
I've read Mr. Reed's Mac Malware Guide, and found it very interesting and informative. I use Sophos for Mac Home Edition; it's free and scored highly in Mr. Reed's tests of anti-virus software.
Here is the link; if you choose to download click on the 'get started' icon at the right of the screen:
http://www.sophos.com/en-us/products/free-tools/sophos-antivirus-for-mac-home-ed ition.aspx -
List with user data from User Profile Service
Hi there!
I got SP intranet site up and running with more then 2000+ users on it.
User Profile Services is getting users attributes from Active Directory.
How can i make a list with all of those users and columns like Department, Manager, Office number, etc..
After that i'm going to apply a filter by current user department.
I would really appreciate some offer.
Thanks!There is a sharepoint hidden list called User Information List , if you want to filter by current user department I recommend that you use ser search API and search People using SourceID
public static ResultTable SearchUsers(string query,int limit,string [] selectproperties)
KeywordQuery kq = new KeywordQuery(SPContext.Current.Site);
//select properties
foreach (string property in selectproperties)
kq.SelectProperties.Add(property);
kq.SourceId = new Guid("B09A7990-05EA-4AF9-81EF-EDFAB16C4E31");
kq.QueryText = query;
kq.RowLimit = limit;
ResultTableCollection results = new SearchExecutor().ExecuteQuery(kq);
return results.Filter("TableType", KnownTableTypes.RelevantResults).FirstOrDefault<ResultTable>();
you need to pass the query Department:CurrentUserDepartment and to get current user department
UserProfileManager manager = new UserProfileManager(SPServiceContext.GetContext(SPContext.Current.Site));
UserProfile currentUser = manager.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName);
string department=currentUser["Department"].toString();
Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010
Maybe you are looking for
-
How to create a full windows image recovery partition ?
Hi, It's been about a month since I remplaced my HDD, because the original one which has the recovery partition was currupted... So, I had to do a clean windows 8.1 x64 installation using my embedded windows 8 key Now I would like to create a recover
-
Change status for 18 million messages in the Integration Engine
Hello there! I have the following situation and I wonder that maybe you could help. Currently I have more than 18 million messages for the BC_XMB object in the Integration Engine for a BI System (connected to a PI system). The problem here is that th
-
hi all, When I run RFFOEDI to gereate IDOCS, IDOCS of message type EUPEXR and PAYEXT are generated. I need to pass a value in a field in the control record for the IDOC of message type EUPEXR but in FM : FI_EDI_EUPEXR_IDCREF01_OUT ( which is uesd to
-
In order to maintain PCI compliance, I've been trying to upgrade the version of Apache on my 10.6 Xserve from 2.2.22 to 2.2.25. So far, nothing that I've tried has worked. I've gone down an number of blind alleys, but after numerious ./configure chan
-
Midnight Notification on All Day Event
How do you get all day events to notify you at a decent time of day? Having this go off at midnight causes all kinds of issues. Why can't set have a user preference setting for when we want to get these notifications? Post relates to: Pre p100eww (Sp